import {
    UploadOutlined,
    UserOutlined,
    VideoCameraOutlined,
} from '@ant-design/icons';
import Home from "../open-type/xhome";
import Admin from "../open-type/admin/Index";
import AdminUser from "../open-type/admin/AdminUser";
import AdminRest from "../open-type/admin/AdminRest";
import AdminFoods from "../open-type/admin/AdminFoods";
import AdminOrder from "../open-type/admin/AdminOrder";
import AdminAdmin from "../open-type/admin/AdminAdmin";
import Add from "../open-type/add/Index";
import AddRest from "../open-type/add/AddRest";
import Redact from "../open-type/redact/Index";
import Setting from "../open-type/setting/Index";
import TextRedact from "../open-type/redact/textRedact";
import AddGoods from "../open-type/add/AddGoods";
import SettingA from "../open-type/setting/Setting";

export const items= [
    {
        keyid: '0-0',
        icon: <UserOutlined />,
        label: '首页',
        key: "/home",
        element: <Home />
    },
    {
        keyid: '0-1',
        icon: <VideoCameraOutlined />,
        label: '数据管理',
        key: "/admin",
        element: <Admin />,
        children: [
            {
                keyid: '0-1-0',
                index: 1,
                icon: <VideoCameraOutlined />,
                label: '用户列表',
                key: "/admin/user",
                element: <AdminUser />
            },
            {
                keyid: '0-1-1',
                icon: <VideoCameraOutlined />,
                label: '商家列表',
                key: "/admin/restaurant",
                element: <AdminRest />
            },
            {
                keyid: '0-1-2',
                icon: <VideoCameraOutlined />,
                label: '食品列表',
                key: "/admin/foods",
                element: <AdminFoods />
            },
            {
                keyid: '0-1-3',
                icon: <VideoCameraOutlined />,
                label: '订单列表',
                key: "/admin/orders",
                element: <AdminOrder />
            },
            {
                keyid: '0-1-4',
                icon: <VideoCameraOutlined />,
                label: '管理员列表',
                key: "/admin/admins",
                element: <AdminAdmin />
            }
        ]
    },
    {
        keyid: '0-2',
        icon: <UploadOutlined />,
        label: '添加数据',
        key: "/add",
        element: <Add />,
        children: [
            {
                keyid: '0-2-0',
                index: 1,
                icon: <VideoCameraOutlined />,
                label: '添加商铺',
                key: "/add/restaurant",
                element: <AddRest />
            },
            {
                keyid: '0-2-1',
                icon: <VideoCameraOutlined />,
                label: '添加商品',
                key: "/add/foods",
                element: <AddGoods />
            }
        ]
    },
    {
        keyid: '0-3',
        icon: <UploadOutlined />,
        label: '编辑',
        key: "/redact",
        element: <Redact />,
        children: [
            {
                keyid: '0-3-0',
                index: 1,
                icon: <VideoCameraOutlined />,
                label: '文本编辑',
                key: "/redact/text",
                element: <TextRedact />
            }
        ]
    },
    {
        keyid: '0-4',
        icon: <UploadOutlined />,
        label: '设置',
        key: "/setting",
        element: <Setting />,
        children: [
            {
                keyid: '0-4-0',
                index: 1,
                icon: <VideoCameraOutlined />,
                label: '管理员设置',
                key: "/setting/admin",
                element: <SettingA />
            }
        ]
    }
]